package com.lzx.reggie.entity

import com.baomidou.mybatisplus.annotation.FieldFill

import com.baomidou.mybatisplus.annotation.TableField
import java.io.Serializable

import java.time.LocalDateTime


data class Category(
    var id: Long? = null,
    //类型 1 菜品分类 2 套餐分类
    var type: Int? = null,
    //分类名称
    var name: String? = null,
    //顺序
    var sort: Int? = null,
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    var createTime: LocalDateTime? = null,
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    var updateTime: LocalDateTime? = null,
    //创建人
    @TableField(fill = FieldFill.INSERT)
    var createUser: Long? = null,
    //修改人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    var updateUser: Long? = null
): Serializable {
    companion object {
        private const val serialVersionUID = 1L
    }
}
